{extend name="homeheader:header"/}
{block name="content"}
	<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_746537_7eih2u5n3e5.css"/>
	<link rel="stylesheet" type="text/css" href="/home/css/home.css" />
	<body style="overflow-x: hidden;background-color: #ebebeb;">
		<div class="home">
			<div class="wrap" style="margin-bottom: 60px;">
				<div class="top row">
					<p>我的</p>
					<a href="#" class="yq">邀请</a>
					<div class="touxiang row">
						<div class="img">
							<img src="{$list.u_icon}" />
						</div>
						<p>{$list.u_name}</p>
					</div>
					<div class="top_lis">
						<ul class="row">
							<li class="col-xs-3">
								<a href="{:url('/home/user/address')}"><p><i class="iconfont">&#xe608;</i></p>
								收货地址
								</a>
							</li>
							<li class="col-xs-3">
								<a href="{:url('/home/user/contact')}"><p><i class="iconfont">&#xe677;</i></p>
								联系电话
								</a>
							</li>
							<li class="col-xs-3">
								<a href="#"><p><i class="iconfont">&#xe60d;</i></p>
								店铺信息</a>
							</li>
							<li class="col-xs-3">
								<a href="{:url('/home/user/person')}"><p><i class="iconfont">&#xe681;</i></p>
								个人信息</a>
							</li>
						</ul>
					</div>
				</div>
				<div class="wallet">
					<p id="withdrawal">我的钱包： <span>￥{$list.u_wallet}</span> <i class="iconfont" style="float: right;">&#xe619;</i></p>
					<a href="{:url('/home/user/earnings')}">
						<i class="iconfont">&#xe680;</i>
						合伙人受益
					</a>
					<a href="{:url('/home/user/spending')}">
						<i class="iconfont">&#xe603;</i>
						余额支出
					</a>
				</div>
				<div class="order">
					<p>我的订单</p>
					<div class="lis">
						<ul class="row">
							<li class="col-xs-3">
								<a href="{:url('/home/user/order')}"><p><i class="iconfont">
										&#xe7a8;
									</i></p>
								已付款</a>
							</li>
							<li class="col-xs-3">
								<a href="{:url('/home/user/order')}"><p><i class="iconfont">
										&#xe624;
									</i></p>
								未付款</a>
							</li>
							<li class="col-xs-3">
								<a href="{:url('/home/user/order')}"><p><i class="iconfont">
										&#xe6f3;
									</i></p>
								已取消</a>
							</li>
							<li class="col-xs-3">
								<a href="#"><p><i class="iconfont">
										&#xe602;
									</i></p>
								售后服务</a>
							</li>
						</ul>
					</div>
				</div>
				<div class="zax">
					<ul class="row">
							<li class="col-xs-3">
								<a href="{:url('/home/user/partner')}"><p><i class="iconfont">
										&#xe646;
									</i></p>
								我的伙伴</a>
							</li>
							<li class="col-xs-6">
								<a href="{:url('/home/user/commission')}"><p><i class="iconfont">
										&#xe6f4;
									</i></p>
								商品佣金</a>
							</li>
							<li class="col-xs-3">
								<a href="#" class="events"><p><i class="iconfont">
										&#xe754;
									</i></p>
								官方活动</a>
							</li>
							<li class="col-xs-3">
								<a href="#"><p><i class="iconfont">
										&#xe614;
									</i></p>
								展会</a>
							</li>
							<li class="col-xs-6">
								<a href="{:url('/home/user/apply')}"><p><i class="iconfont">
										&#xe60e;
									</i></p>
								专柜申请</a>
							</li>
							<li class="col-xs-3">
								<a href="{:url('/home/user/apply')}"><p><i class="iconfont">
										&#xe61b;
									</i></p>
								合伙人申请</a>
							</li>
							
						</ul>
							<p class="bt_tips" data-method="notice">关于惠容水族APP <i class="iconfont" style="float: right;">&#xe619;</i></p>
				</div>
				<!--<div class="kong"></div>-->
			</div>
			<div class="footer">
				<ul class="row">
					<li class="col-xs-2">
						<a href="{:url('/home/index/index')}">
							<i class="iconfont icon-shouye"></i><span>首页</span>
						</a>
					</li>
					<li class="col-xs-2">
						<a href="{:url('/home/goods/category')}">
							<i class="iconfont icon-icon"></i><span>分类</span>
						</a>
					</li>
					<li class="col-xs-2">
						<a href="custom.html"><i class="iconfont icon-service"></i><span>客服</span>
						</a>
					</li>
					<li class="col-xs-2">
						<a href="{:url('/home/carts/carts')}"><i class="iconfont icon-cart1"></i><span>购物车</span>
						</a>
					</li>
					<li class="col-xs-2 active">
						<a href="{:url('/home/user/home')}"><i class="iconfont icon-wode"></i><span>我的</span>
						</a>
					</li>
				</ul>
			</div>
			<div class="ft_bg">
				<img src="/home/img/footer_bg.png"/>
			</div>
		</div>
	</body>
</html>
<script type="text/javascript">
	/* 官方活动 */
		$.ajax({
			type:"post",
			url:"{:url('/home/user/events')}",
			async: false,
			contentType:"application/json",
			success:function(res){		
				var data = res.data;
				if(data.g_type===2){
					$('.events').attr('href','/home/goods/goodsDetail/id/'+data.id+'');
				}else if(data.g_type === 1){
					$('.events').attr('href','/home/goods/gbulkDetail/id/'+data.id+'');
				}
			}
		});
		layui.use('layer', function(){
		  var layer = layui.layer;
		  var active={
		  	notice: function(){
		  layer.open({
		  	title: 'Tips'
		  	,shade:0.8
		  ,content: '警告警告'
		});}
		  }
$('.bt_tips').on('click', function(){
    var othis = $(this), method = othis.data('method');
    active[method] ? active[method].call(this, othis) : '';
  });
});
/* 提现申请 */
$('#withdrawal').click(function(){
	window.location.href = '/home/user/withdrawal';
});
</script>
{/block}